package xiaye.mycrawler;

public class Address {
	private final String url;
	public Address(String url){
		this.url = url;
	}
	
	public String getURL(){
		return url;
	}
	
	@Override
	public String toString(){
		return getURL();
	}
	
	@Override
	public boolean equals(Object object){
		if (object == null && !(object instanceof Address)){
			return false;
		}
		Address o = (Address)object;
		return url.equals(o.url);
	}
	
	@Override
	public int hashCode(){
		return url.hashCode();
	}
}
